package ruanjian.dao;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import ruanjian.domain.User;

public interface UserDao {

    /**
     * 通过账号和密码查询用户
     */
    @Select("select * from user where usercode=#{usercode},password=#{password}")
    public User findUser(@Param("usercode") String usercode,
                         @Param("password") String password);

}


